package com.itheima.service.com.itheima.service.store;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.store.Catalog;

import java.util.List;

public interface CatalogService {

    //保存
    void save(Catalog catalog);

    //删除
    void delete(Catalog catalog);

    //更新
    void update(Catalog catalog);

    //根据ID查找
    Catalog findById(String id);

    //查询所有
    List<Catalog> findAll();

    //分页查询数据
    PageInfo findAll(int page, int size);
}
